<?php
$this->renderPartial('application.modules.member.views.main.info');
$form = $this->beginWidget('CActiveForm', array(
        'id' => 'topup-ewallet-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
                'validateOnSubmit' => true,
        ),
));
//echo $form->errorSummary($model);
?>
<br />
<h1>Topup E-wallet</h1>
<?php if (Yii::app()->user->hasFlash('message')): ?>

<div class="alert alert_grey">
    <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/success.png">
        <?php echo Yii::app()->user->getFlash('message'); ?>
</div>
<?php endif; ?>
<div class="add">
    <form action="" method="post" name="admin_form" enctype="multipart/form-data">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr class="title">
                <th colspan="2" style="text-align:left;"><strong>Masukkan Serial dan PIN Top Up</strong></th>
            </tr>
            <tr>
                <th width="100" valign="top">Nomor Serial</th>
                <td>
                    <input type="text" name="serial_pin_part1" value="" size="10" maxlength="8" class="text" />
                    <?php echo $form->error($model, 'serial', array('style' => 'color:#a42a27;')); ?>
                </td>

            </tr>
            <tr>
                <th width="100" valign="top">PIN</th>
                <td><input type="text" name="pin_topup" value="" size="10" class="text" /> <?php echo $form->error($model, 'serial', array('style' => 'color:#a42a27;')); ?></td>
            </tr>
      <!--      <tr class="title">
              <th colspan="2" style="text-align:left;"><strong>VALIDASI KODE UNIK</strong></th>
            </tr>
            <tr>
              <th>Kode Unik</th>
              <td><div style="float:left; padding-right:10px;"><input type="text" name="secure_text" value="" size="22" class="text" /></div><div style="float:left; padding-top:1px;"><?php $this->widget('CCaptcha'); ?></div><div style="clear:both;"></div></td>
            </tr>-->
            <tr class="title">
                <th colspan="2" style="text-align:left;"><strong>VALIDASI PIN</strong></th>
            </tr>
            <tr>
                <th>PIN Utama</th>
                <td><input type="password" name="serial_pin" value="" size="37" class="text" /><?php echo $form->error($model, 'serial_pin', array('style' => 'color:#a42a27;')); ?></td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td><input type="submit" name="submit" value="Proses" class="button"></td>
            </tr>
        </table>
    </form>
</div>
<?php
$this->endWidget();
?>